<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$admin_title}</title>
<include file="./core/Modules/Center/Tpl/Public/js_css_header.html" />
</head>
<body>
	<include file="./core/Modules/Center/Tpl/Public/header.html" />
	<table width="100%" height="100%" class="manage_block">
	  <tbody>
	    <tr>
	      <td class="manage_left" valign="top">
	      	<include file="./core/Modules/Center/Tpl/Public/system_manage_left.html" />
	      </td>
	      <td valign="top">
	        <div class="cont_wrap">
				<div class="position">当前位置:&nbsp;<a href="__APP__/center/frame/index/">首页</a>&nbsp;&gt;&nbsp;<a href="javascritp:;" target="_self">友情链接</a>&nbsp;&gt;&nbsp;<if condition="$obj != null">修改操作<else />新增操作</if></div>
				<form name="formSubmit" action="__APP__/center/link/<if condition="$obj != null">update/<else />add/</if>" method="post" enctype="multipart/form-data">
					<if condition="$obj != null"><input type="hidden" name="id" value="{$obj.link_id}" /></if>
					<table width="100%" cellpadding="0" cellspacing="0" class="line">
						<tr height="20">
							<td align="center" width="18%" class="tabl_line_bg">链接名称</td>
							<td align="left">
								<input type="text" name="title" size="80" value="{$obj.title}" class="text"/>
							</td>
						</tr>
						<tr height="20">
							<td align="center" class="tabl_line_bg">链接图片</td>
							<td align="left">
								<input type="text" id="picture_text" name="picture_text" size="80" value="{$obj.picture_addr}" class="text" style="width: 220px" readonly/>
								<input id="picture" name="picture" type="file" /><span id="picture_progress"></span>
								<script type="text/javascript">
									$(function() {
										<php>$timestamp = time();</php>
										uploadify4j("#picture",'*.gif;*.jpg;*.jpeg;*.png','{$timestamp}','<php>echo md5('unique_salt' . $timestamp);</php>');
									});
								</script>
							</td>
						</tr>
						<tr height="20">
							<td align="center" class="tabl_line_bg">链接地址</td>
							<td align="left">
								<input type="text" name="link" size="80" value="{$obj.link|default='http://'}" class="text"/>
							</td>
						</tr>
						<tr height="20">
							<td align="left" colspan="2">
								<if condition="$referUrl != '' && $referUrl != null"><a class="button" href="javascript:redirectURL('{$referUrl}');">返回</a></if>
								&nbsp;<a id="submit_btn" class="button" href="javascript:;" onclick="doSubmitForm(this,'__APP__')">提交</a>
							</td>
						</tr>
					</table>
				</form>
			</div>
	      </td>
	    </tr>
	  </tbody>
	</table>
</body>
</html>
